// -----------------------------------------------------------------------
//  <copyright file="IdentityMapsterModule.cs" company="LiuliuSoft">
//      Copyright (c) 2025 66SOFT. All rights reserved.
//  </copyright>
//  <site>https://ifs.66soft.net</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2025-10-23 17:10</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Mapping;
using DaprPlus.Mapster;


namespace DaprPlus.Identity.Infrastructure.Mapster;

public class IdentityMapsterModule : MapsterModule
{
    /// <summary>
    /// 将模块服务添加到依赖注入服务容器中
    /// </summary>
    /// <param name="services">依赖注入服务容器</param>
    /// <returns></returns>
    public override IServiceCollection AddServices(IServiceCollection services)
    {
        base.AddServices(services);

        services.AddSingleton<IMapTuple, RoleResourceMapper>();

        return services;
    }
}